package com.ihr360.shared.exceptionmail.service;

import com.ihr360.shared.exceptionmail.entity.ExceptionRecord;
import com.ihr360.shared.exceptionmail.service.fallback.ExceptionMailServiceFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Eric on 2018/4/10/010.
 */
@FeignClient(name = "ihr360-shared-service-provider", fallback = ExceptionMailServiceFallBack.class)
public interface ExceptionMailService {

    @RequestMapping(value = "/exception/mail/send", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    void send(@RequestBody ExceptionRecord record);

}
